﻿using EcoSystem.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;

namespace EcoSystem
{
    /// <summary>
    /// 领域模型对应的DTO
    /// </summary>
    public class DataPermissionDto : ExtensibleFullAuditedEntityDto<Guid>
    {
        /// <summary>
        /// 业务类别编码标识
        /// </summary>
        public string EnCode { get; set; }

        /// <summary>
        /// 业务类别名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 业务描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 权限数据源类型
        /// </summary>
        public PermissionSourceType SourceType { get; set; }

        /// <summary>
        /// 权限配置数据源定义
        /// </summary>
        public PermissionSourceOptions SourceOptions { get; set; }
    }
}
